package com.mars.basic.client;

import com.mars.basic.allmain.dto.RoleDto;
import com.mars.basic.allmain.po.Role;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;


@RequestMapping(value = "/role")
public interface IRoleClient {
    @RequestMapping(value = "/add")
    Role addRole(@SpringQueryMap RoleDto dto);

    @RequestMapping(value = "/list")
    List<RoleDto> getList();
}
